package com.laisheng.interview.mapper;

import com.laisheng.interview.model.Evaluation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 面试评价Mapper接口
 */
@Mapper
public interface EvaluationMapper {
    
    /**
     * 根据面试信息ID查询评价
     */
    Evaluation selectByAccountingInfoId(@Param("accountingInfoId") Long accountingInfoId);
    
    /**
     * 插入评价
     */
    int insert(Evaluation evaluation);
    
    /**
     * 更新评价
     */
    int update(Evaluation evaluation);
    
    /**
     * 根据面试信息ID删除评价
     */
    int deleteByAccountingInfoId(@Param("accountingInfoId") Long accountingInfoId);
} 